import 'dart:convert';

EvaluationSkillProgressResult evaluationSkillProgressResultFromJson(
        String str) =>
    EvaluationSkillProgressResult.fromJson(json.decode(str));

String evaluationSkillProgressResultToJson(
        EvaluationSkillProgressResult data) =>
    json.encode(data.toJson());

class EvaluationSkillProgressResult {
  EvaluationSkillProgressResult({
    this.status,
    this.message,
    this.result,
  });

  int? status;
  String? message;
  Result? result;

  factory EvaluationSkillProgressResult.fromJson(Map<String, dynamic> json) =>
      EvaluationSkillProgressResult(
        status: json["status"],
        message: json["message"],
        result: json["result"] != null ? Result.fromJson(json["result"]) : null,
      );

  Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": result?.toJson(),
      };
}

class Result {
  Result({
    this.list,
  });

  List<SkillProgressItem>? list;

  factory Result.fromJson(Map<String, dynamic> json) => Result(
        list: json["list"] != null
            ? List<SkillProgressItem>.from(
                json["list"].map((x) => SkillProgressItem.fromJson(x)))
            : null,
      );

  Map<String, dynamic> toJson() => {
        "list": List<dynamic>.from(list!.map((x) => x.toJson())),
      };
}

class SkillProgressItem {
  SkillProgressItem({
    this.firstName,
    this.lastName,
    this.total,
    this.progress,
    this.userName,
    this.type,
  });

  String? firstName;
  String? lastName;
  int? total;
  int? progress;
  String? userName;
  String? type;

  factory SkillProgressItem.fromJson(Map<String, dynamic> json) =>
      SkillProgressItem(
        firstName: json["firstName"],
        lastName: json["lastName"],
        total: json["total"],
        progress: json["progress"],
        userName: json["userName"],
        type: json['type'],
      );

  Map<String, dynamic> toJson() => {
        "firstName": firstName,
        "lastName": lastName,
        "total": total,
        "progress": progress,
        "userName": userName,
        "type": type,
      };
}
